using UnityEngine;

namespace Gameplay.PVE
{
    public class HitAction : SpecialActionBase
    {
        private float startTime;
        private float actionDuration;
        public override void Start(AddControlArg arg)
        {
            base.Start(arg);
            unit.Transmit(ETransmitType.StopSkill);
            if (!unit.Data.IsInStun())
            {
                unit.Transmit(ETransmitType.PlayHitMotion);
            }
            
            startTime = TimeManager.logicTime;
            actionDuration = arg.time;
        }
    }
}